home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group03a.txt
/
000061_icon-group-sender_Fri Mar 28 08:10:29 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2003-12-22
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id h2SF8To16888
for icon-group-addresses; Fri, 28 Mar 2003 08:08:29 -0700 (MST)
Message-Id: <200303281508.h2SF8To16888@baskerville.CS.Arizona.EDU>
X-Sender: whm@mail.mse.com (Unverified)
Date: Thu, 27 Mar 2003 22:10:08 -0700
To: voice_of_reason@australia.edu (Quiet Voice)
From: "William H. Mitchell" <whm86@mse.com>
Subject: Re: newbie questions -- ressurected
Cc: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
At 02:00 PM 3/27/03 -0800, Quiet Voice wrote:
>
>The correct code is as follows:
>
>every lettercount := !sort(lettercount,2) do
>write(outputfile,lettercount[1]," -- ",lettercount[2])
>
>The one problem is that this sorts it in ascending order. Can't recall
>if there is a direct function to sort decending...but that's a minor
>concern right now.
There is no descending option for the built-in sort. I usually use a
down-counting to-by for that situation. For example, instead of this:
every x := !Sort(L) do
Do this:
every x := Sort(L)[*L to 1 by -1] do
...